This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 22, 2011, 5:41 PM
4 Posts

XPages and Web Service

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.1
  • Role: Developer
  • Tags: XPages Web Service Consumer
  • Replies: 2
Newbie XPages developer here... Working on a proof of concept for an upcoming project. The scope of this proof of concept is as follows:
  1. Have an XPage that the user launches in a browser window.
  2. In the XPage the user can select Notes documents (from a Repeat Control) for processing.
  3. The XPage has a button that will pass information from each document to a web service running on the external server.
At this point I've completed development on the XPages component. As the user selects documents, I store their UNID's in the sessionScope using java.util.ArrayList(). For the processing button, I plan on looping through my array of UNID's, getting each document, and passing their data to the web service.

I have created a new Web Service Consumer in my proof of concept database. I specified Java as the Type and provided a URL that points to the WSDL file. When I open the Web Service Consumer Contents I see a bunch of classes that make up the web service consumer. I *think* that it is possible to call these Java classes through SSJS, however I do not know how to do this (new to XPages and Java). I was hoping that someone could point me to (or show me) some examples that would help get me started. I apologize if the information provided is too vague... As I mentioned I'm new to XPages and Java (and Web Services for that matter!). Thanks in advance for any helpful advice!
Apr 22, 2011, 6:05 PM
135 Posts
Re: XPages and Web Service
XPages connect very poorly to all existing Domino design elements like script libraries (LotusScript and Java) and I'm afraid you cannot use Domino Web Service Consumer design element from SSJS directly (you need to start an agent to do that). I hope I'm wrong in this case but this lack of integration to anything we've developed in the past is a huge problem with XPages.
 
Anyway here is a way to call a web service with Apache Axis classes:
 
Apr 25, 2011, 5:27 PM
298 Posts
And there is a bug in 8.5.2, you can't call a web service form an XPage
You would have to call an agent that calls the web service. Howard

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal